package com.dcw.lixb.designmode.prototype;

/**
 * @author lixiaobin
 * @date 2020-07-17 10:47:51
 * @desc 描述信息
 */
public abstract class Shape implements Cloneable {
    private String id;
    protected  String type;

    abstract void draw();

    public String getType() {
        return type;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    protected Object clone() {
        Object obj = null;
        try {
            return super.clone();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return obj;
    }
}
